public class test {
    public static void main(String[] args) {
        double items[] = new double[6];
        for (int i = 0; i < items.length; i++) {
            items[i] = i;
        }
        for (int i = 0; i < (items.length+1)/2; i++) {
            double x = 0;
            x = items[i];
            items[i] = items[items.length-1-i];
            items[items.length-i-1] = x;
        }
        for (double item : items) {
            System.out.println(item);
        }
//        System.out.println(Math.sqrt(4));
//        for (int point = 0; point < 100; point+=1) {
//            System.out.println(point+":"+(int)Math.floor(Math.log(point)*1.02));
//        }
    }
}
